package com.itheima.dao;

import com.itheima.po.Account;

/**
 * ClassName:AccountDao
 * Package:com.itheima.dao
 * Description:账户的持久层接口
 * Date:2020/2/272:35
 * User: snow
 */
public interface AccountDao {
	/**
	 * 根据id查找账户
	 * @param accountId
	 */
	public Account findAccountById(Integer accountId);

	/**
	 * 根据name查找账户
	 * @param accountName
	 */
	public Account findAccountByName(String accountName);

	/**
	 * 更新账户
	 * @param account
	 */
	public void updateAccount(Account account);


}
